<?php

if (!defined('SYSPATH')) exit("No direct script access allowed!");

class CL_Controller {

    protected $load;
    protected $config;
    protected $out;

    public function CL_Controller() {
        $this->load = CL_Loader::get_instance();
        $this->config = CL_Config::get_instance();
        $this->out = CL_Output::get_instance();
    }

    private function buffer_variable($var, $value) {
        $this->out->buffer_vars(array($var => $value));
    }

    private function buffer_variables($vars) {
        $this->out->buffer_vars($vars);
    }

    private function location($path) {
        header('Location: ' . get_full_url($path));
    }

    public function end() {
        // TO BE OVERRIDEN
    }
}


/* End of file Controller.php */
/* Location: /system/libraries/Controller.php */